package cn.bitkit.base.container;

import lombok.Getter;
import lombok.Setter;

/**
 * @author changbo
 */
@Getter
@Setter
public class PageRequest<T> {

	/** 当前页  **/
	private long current = 1;
	/** 每页行数  **/
	private long size = 10;

	private T param;

	public static <T> PageRequest<T> createPage(T param, long pageNo, long pageSize){
		PageRequest<T> pageRequest = new PageRequest<>();
		pageRequest.setParam(param);
		pageRequest.setCurrent(pageNo);
		pageRequest.setSize(pageSize);
		return pageRequest;
	}
}
